﻿using System;
using System.Data;
using System.Data.Common;
using System.Collections.Generic;

namespace Joyintech.IDAL.inpiao365
{
    /// <summary>
    /// 接口层ImovieOnTheater_DAL 的摘要说明。
    /// </summary>
    public partial interface ImovieOnTheater_DAL
    {
        #region  成员方法
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        bool Exists(int MovieId, int TheaterId);
        /// <summary>
        /// 增加一条数据
        /// </summary>
        int Add(Joyintech.Model.inpiao365.movieOnTheater model, DbTransaction trans = null);
        /// <summary>
        /// 增加一条数据：自动屏蔽传入值为null的字段
        /// </summary>
        int AddAutoCheck(Joyintech.Model.inpiao365.movieOnTheater model, DbTransaction trans = null);
        /// <summary>
        /// 批量新增数据
        /// </summary>
        int AddList(List<Joyintech.Model.inpiao365.movieOnTheater> list);
        /// <summary>
        /// 更新一条数据
        /// </summary>
        int Update(Joyintech.Model.inpiao365.movieOnTheater model, DbTransaction trans = null);
        /// <summary>
        /// 更新一条数据：自动屏蔽传入值为null的字段
        /// </summary>
        int UpdateAutoCheck(Joyintech.Model.inpiao365.movieOnTheater model, DbTransaction trans = null);
        /// <summary>
        /// 批量更新数据
        /// </summary>
        int UpdateList(List<Joyintech.Model.inpiao365.movieOnTheater> list);
        /// <summary>
        /// 删除一条数据
        /// </summary>
        int Delete(int MovieId, int TheaterId, DbTransaction trans = null);
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        Joyintech.Model.inpiao365.movieOnTheater GetModel(int MovieId, int TheaterId);
        /// <summary>
        /// 获得数据列表
        /// </summary>
        DataSet GetList(string strWhere);
        #endregion  成员方法
    }
}
